import request from '@/utils/request'

// 查询积分规则设置列表
export function listIntegralConfig(query) {
  return request({
    url: '/recycle/integralConfig/list',
    method: 'get',
    params: query
  })
}

// 查询积分规则设置详细
export function getIntegralConfig(id) {
  return request({
    url: '/recycle/integralConfig/' + id,
    method: 'get'
  })
}

// 新增积分规则设置
export function addIntegralConfig(data) {
  return request({
    url: '/recycle/integralConfig',
    method: 'post',
    data: data
  })
}

// 修改积分规则设置
export function updateIntegralConfig(data) {
  return request({
    url: '/recycle/integralConfig',
    method: 'put',
    data: data
  })
}

// 删除积分规则设置
export function delIntegralConfig(id) {
  return request({
    url: '/recycle/integralConfig/' + id,
    method: 'delete'
  })
}
